﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MassesVoiceList.aspx.cs" Inherits="SysManage.Module.Grassroots.MassesVoiceList" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <style type="text/css">
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server"></f:PageManager>
        <f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server">
            <Regions>
                <f:Region ID="Region1" runat="server" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BodyPadding="5px 5px 5px 0">
                    <Items>
                        <f:Form ID="Form2" runat="server" Height="100px" BodyPadding="5px" ShowHeader="false"
                            ShowBorder="false">
                            <Rows>
                                <f:FormRow ID="FormRow1" runat="server">
                                    <Items>
                                        <f:TextBox ID="txtTitle" runat="server" Label="主题" EmptyText="请输入主题" LabelWidth="70px" LabelAlign="Right" MaxLength="20"></f:TextBox>
                                        <f:DropDownList ID="ddlStatus" runat="server" Label="状态" LabelAlign="right" LabelWidth="55px">
                                            <f:ListItem Text="===未指定===" Value="" />
                                            <f:ListItem Text="已回复" Value="4" />
                                            <f:ListItem Text="待回复" Value="1" />
                                        </f:DropDownList>
                                    </Items>
                                </f:FormRow>
                                <f:FormRow ID="FormRow2" runat="server">
                                    <Items>
                                        <f:TextBox ID="txtSuggestBy" runat="server" Label="提交人" EmptyText="请输入提交人" LabelWidth="70px" LabelAlign="Right" MaxLength="20"></f:TextBox>
                                        <f:TextBox ID="txtRDeputy" runat="server" Label="回复人" EmptyText="请输入回复人" LabelWidth="55px" LabelAlign="Right" MaxLength="20"></f:TextBox>
                                    </Items>
                                </f:FormRow>
                                <f:FormRow ID="FormRow3" runat="server">
                                    <Items>
                                        <%--<f:TriggerBoxPicker runat="server" ID="ppBranch" Label="所属组织" LabelWidth="70px" LabelAlign="Right"
                                            WindinsTitle="选择组织" WindinsHeight="450px" WindinsWidth="700px" ShowTrigger1="false" ShowEmptyLabel="true" EnableEdit="false"
                                            EmptyText="请选择组织" WindinsUrl="../../../Share/Picker/BranchSinglePicker.aspx" Trigger1Icon="Clear" AutoPostBack="true" OnTextChanged="ppBranch_TextChanged">
                                        </f:TriggerBoxPicker>--%>
                                        <f:DropDownList ID="ddlGroup" runat="server" Label="街道" LabelAlign="right" LabelWidth="70px" AutoPostBack="true" OnSelectedIndexChanged="ddlGroup_SelectedIndexChanged">
                                        </f:DropDownList>
                                        <f:DropDownList ID="ddlItem" runat="server">
                                            <f:ListItem Selected="True" Text="===请选择===" Value=""></f:ListItem>
                                        </f:DropDownList>
                                        <f:Button Margin="0 0 0 5" ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" Icon="SystemSearch"></f:Button>
                                    </Items>
                                </f:FormRow>
                            </Rows>
                        </f:Form>
                        <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                            EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true"
                            OnSort="Grid1_Sort" SortField="Title" SortDirection="DESC" AllowPaging="true"
                            IsDatabasePaging="true" OnPreDataBound="Grid1_PreDataBound" OnRowCommand="Grid1_RowCommand"
                            OnPageIndexChange="Grid1_PageIndexChange">
                            <Toolbars>
                                <f:Toolbar ID="Toolbar1" runat="server">
                                    <Items>
                                        <f:Button ID="btnDeleteSelected" Icon="Delete" runat="server" ConfirmText="确认要删除选中记录？" Text="删除选中记录" OnClick="btnDeleteSelected_Click">
                                        </f:Button>
                                        <f:ToolbarSeparator runat="server">
                                        </f:ToolbarSeparator>
                                        <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                        </f:ToolbarFill>
                                        <f:Button ID="btnAdd" runat="server" Icon="Add" EnablePostBack="false" Text="新增">
                                        </f:Button>
                                        <f:Button ID="btnExport" runat="server" Icon="PageExcel" Text="导出" OnClick="btnExport_Click">
                                        </f:Button>
                                    </Items>
                                </f:Toolbar>
                            </Toolbars>
                            <PageItems>
                                <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                                </f:ToolbarText>
                                <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" runat="server">
                                    <f:ListItem Text="10" Value="10"></f:ListItem>
                                    <f:ListItem Text="20" Value="20"></f:ListItem>
                                    <f:ListItem Text="50" Value="50"></f:ListItem>
                                    <f:ListItem Text="100" Value="100"></f:ListItem>
                                </f:DropDownList>
                            </PageItems>
                            <Columns>
                                <f:RowNumberField />
                                <f:BoundField DataField="Title" SortField="Title" ExpandUnusedSpace="true" HeaderText="主题" />
                                <f:BoundField DataField="UserName" SortField="UserName" Width="80px" TextAlign="Center" HeaderText="提交人"></f:BoundField>
                                <f:BoundField DataField="MUserName" SortField="MUserName" Width="80px" TextAlign="Center" HeaderText="回复人"></f:BoundField>
                                <f:BoundField DataField="ItemName" SortField="ItemName" Width="200px" HeaderText="社区/村公司"></f:BoundField>
                                <f:BoundField DataField="CreateTime" SortField="CreateTime" HeaderText="创建时间" Width="150px" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" />
                                <f:BoundField DataField="StatusName" SortField="Status" HeaderText="回复状态" Width="100px" TextAlign="Center"></f:BoundField>
                                <f:WindowField ColumnID="editField" TextAlign="Center" HeaderText="操作" ToolTip="操作" WindowID="Dialog"
                                    Title="查看" DataIFrameUrlFields="ID" Width="50px" Text="查看"
                                    DataIFrameUrlFormatString="MassesVoiceEdit.aspx?id={0}" />
                                <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" HeaderText="删除" Icon="Delete" ToolTip="删除" ConfirmText="确定删除此记录？"
                                    ConfirmTarget="Top" CommandName="Delete" Width="50px" />
                            </Columns>
                        </f:Grid>
                    </Items>
                </f:Region>
            </Regions>
        </f:RegionPanel>
        <f:Window ID="Dialog" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="true" EnableIFrame="true" Width="700px" Height="420px" OnClose="Dialog_Close">
        </f:Window>
    </form>
</body>
</html>
